<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
	<meta name="language" content="en" />

	<!-- blueprint CSS framework yeah -->
	<link rel="stylesheet" type="text/css" href="<?php echo Yii::app()->request->baseUrl; ?>/css/screen.css" media="screen, projection" />
	<link rel="stylesheet" type="text/css" href="<?php echo Yii::app()->request->baseUrl; ?>/css/print.css" media="print" />
	<!--[if lt IE 8]>
	<link rel="stylesheet" type="text/css" href="<?php echo Yii::app()->request->baseUrl; ?>/css/ie.css" media="screen, projection" />
	<![endif]-->

	<link rel="stylesheet" type="text/css" href="<?php echo Yii::app()->request->baseUrl; ?>/css/admin.css" />
	<link rel="stylesheet" type="text/css" href="<?php echo Yii::app()->request->baseUrl; ?>/css/form.css" />

	<title><?php echo CHtml::encode($this->pageTitle); ?></title>
</head>

<body>

<div class="container" id="page">

	<div id="header">
            <img src="<?php echo Yii::app()->request->baseUrl; ?>/imgs/header_admin.jpg"></img>
	</div><!-- header -->

	<div id="mainmenu">
		<?php $this->widget('zii.widgets.CMenu',array(
                        'encodeLabel'=>false,
			'items'=>array(
				array('label'=>'<img src="'.Yii::app()->request->baseUrl.'/imgs/home_admin.png" alt="Inicio" />', 'url'=>array('/site/index'), 'itemOptions'=>array('class'=>'home')),
                                //array('label'=>'<img src="'.Yii::app()->request->baseUrl.'/imgs/quienes.jpg" alt="Inicio" />', 'url'=>array('/site/index'), 'itemOptions'=>array('class'=>'quienes')),
                            //array('label'=>'<img src="'.Yii::app()->request->baseUrl.'/imgs/que.jpg" alt="Inicio" />', 'url'=>array('/site/index'), 'itemOptions'=>array('class'=>'quehacemos')),
                            //array('label'=>'<img src="'.Yii::app()->request->baseUrl.'/imgs/nuestros_over.jpg" alt="Inicio" />', 'url'=>array('/site/index'), 'itemOptions'=>array('class'=>'nuestros')),
                            //array('label'=>'<img src="'.Yii::app()->request->baseUrl.'/imgs/ofrecemos.jpg" alt="Inicio" />', 'url'=>array('/site/index'), 'itemOptions'=>array('class'=>'ofrecemos')),
                            //array('label'=>'<img src="'.Yii::app()->request->baseUrl.'/imgs/contacto.jpg" alt="Inicio" />', 'url'=>array('/site/index'), 'itemOptions'=>array('class'=>'contacto')),
				//array('label'=>'Login', 'url'=>array('/site/login'), 'visible'=>Yii::app()->user->isGuest),
                                array('label'=>'<img src="'.Yii::app()->request->baseUrl.'/imgs/representados_admin.png" alt="Inicio" />', 'url'=>array('/directorio'), 'visible'=>!Yii::app()->user->isGuest),
                                array('label'=>'<img src="'.Yii::app()->request->baseUrl.'/imgs/usuarios_admin.png" alt="Inicio" />', 'url'=>array('/usuarios'), 'visible'=>Yii::app()->user->checkAccess('sysadmin')),
                                array('label'=>'<img src="'.Yii::app()->request->baseUrl.'/imgs/administrador_admin.png" alt="Inicio" />', 'url'=>array('/micuenta'), 'visible'=>!Yii::app()->user->isGuest),
                                
                                array('label'=>'<img src="'.Yii::app()->request->baseUrl.'/imgs/salir_admin.png" alt="Inicio" />', 'url'=>array('/site/logout'), 'visible'=>!Yii::app()->user->isGuest)
			),
		));
                 
                ?>
	</div><!-- mainmenu -->
	
	<?php echo $content; ?>

	<div class="clear"></div>

	<div id="footer">
		
		
	</div><!-- footer -->

</div><!-- page -->

</body>
</html>
